aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/(profile)/+layout.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-09 12:52:05 -0700
committerAdam Soltys <[email protected]>2024-10-10 12:18:06 -0700
commiteb03c0c9070f886c1e4aefaf1f5211b406350c71 (patch)
treea93d5cd90ec2b2a22917b4a829fd39b4727667b1 /src/routes/(app)/[username]/(profile)/+layout.server.ts
parent8ff6e6ff935b9fb08b8c20ac7527612d0a6b4396 (diff)
downloadcoinos-ui-eb03c0c9070f886c1e4aefaf1f5211b406350c71.tar.gz
coinos-ui-eb03c0c9070f886c1e4aefaf1f5211b406350c71.zip
follows
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
-rw-r--r--src/routes/(app)/[username]/(profile)/+layout.server.ts15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts
index a508de92..308422b3 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.server.ts
+++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts
@@ -1,6 +1,8 @@
import { get } from "$lib/utils";
-export async function load({ parent }) {
+export async function load({ depends, parent }) {
+ depends("app:user");
+
let { subject, user } = await parent();
subject.follows = [];
@@ -12,12 +14,13 @@ export async function load({ parent }) {
console.log("problem fetching follows", e);
}
- try {
- subject.followers = await get(`/${subject.pubkey}/followers`);
- } catch (e) {
- console.log("problem fetching followers", e);
- }
+ // try {
+ // subject.followers = await get(`/${subject.pubkey}/followers`);
+ // } catch (e) {
+ // console.log("problem fetching followers", e);
+ // }
+ subject.followers = [];
if (user) {
user.follows = await get(`/${user.pubkey}/follows?tagsonly=true`);
}